package cn.duli.myvideo.mapper;

import cn.duli.myvideo.pojo.MovieComment;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MovieCommentMapper {

    Page<MovieComment> findAll();

    List<MovieComment> findByUserId(@Param("uId") Integer uId);

    List<MovieComment> findById(@Param("mId") Integer mId);

    void save(MovieComment movieComment);

    void deleteById(@Param("mcId") Integer mcId);
}